/** ViewHistory */
package client.events;

import client.service.PatientService;
import domain.patient.Patient;

/** 
 * event to fire when viewing patient history
 * @version $Revision: 1.0 $
 * @author jessienewman
 */
public class ViewHistory {
	/**
	 * Field patient.
	 */
	public Patient patient;

	/**
	 * creates a ViewHistory object
	 * @param patient who's history will be viewed
	 */
	public ViewHistory(Patient patient) {
		this.patient = patient;
	}
	
	/** 
	 * creates a ViewHistoyr object
	 * @param patientId id of pateint who's histoyr will be viewed
	 */
	public ViewHistory(Integer patientId) {
		this.patient = PatientService.getPatient(patientId);
	}
	
	/**
	 * returns string about success
	
	 * @return string "Histoyr view Successful" */
	public String toString() {
		return "History view Successful";
	}
}
